package cn.kxm.service;

import java.util.Date;
import java.util.List;


import cn.kxm.pojo.OfferBillDetail;
import cn.kxm.pojo.OfferPriceBill;

public interface OfferPriceBillService {
	public OfferPriceBill getOfferPriceBill(String code);
	
	public List<OfferPriceBill> getAllByCondition(String code,Date startTime,Date endTime,String customName,int offset,int size);
	
	public int getCountByCondition(String code,Date startTime,Date endTime,String customName);
	
	public int insertOfferPriceBill(OfferPriceBill offerPriceBill);
	
	public boolean insertOfferPriceBill(OfferPriceBill offerPriceBill,List<OfferBillDetail> offerBillDetails);
	
	public int deleteOfferPriceBill(String code);
	
	public boolean deleteOfferPriceBillAndDetails(String code);
	
	public int updateOfferPriceBill(OfferPriceBill offerPriceBill);
	
	public boolean updateOfferPriceBill(OfferPriceBill offerPriceBill,List<OfferBillDetail> offerBillDetails);
}
